import request from '@/utils/request'

// 获取城市
export function getCityName(provinceId) {
    return request({
        url: `tools-miscellaneous/listCity?provinceId=${provinceId}`,
        method: 'get'
    })
}

// 获取中学
export function getSchool(cityId) {
    return request({
        url: `tools-miscellaneous/listSchool?cityId=${cityId}`,
        method: 'get'
    })
}

// 添加或者删除
export function toUpdate(query) {
    return request({
        url: 'tools-miscellaneous/updateThreeTable',
        method: 'post',
        params:query
    })
}

// 筛选查询省份
export function GetProvinceList() {
  return request({
    url: '/operation-center/selectProvinceNameAndId',
    method: 'get',
  })
}

// 筛选查询城市
export function GetCityList(provinceId) {
  return request({
    url: `/tools-miscellaneous/listCity?provinceId=${provinceId}`,
    method: 'get',
  })
}

// 筛选查询中学
export function GetSchool(cityId) {
  return request({
    url: `tools-miscellaneous/listSchool?cityId=${cityId}`,
    method: 'get'
  })
}

